import Cookies from 'js-cookie'
import { getLocal, setLocal, delLocal } from "@/utils/storage"


const TokenKey = 'Admin-Token'

export function getToken () {
    return getLocal(TokenKey)
    //return Cookies.get(TokenKey)
}

export function setToken (token) {
    return setLocal(TokenKey, token)
    //return Cookies.set(TokenKey, token)
}

export function removeToken () {
    return delLocal(TokenKey)
    // return Cookies.remove(TokenKey)
}

export function getCookieToken(){
    return Cookies.get(TokenKey)
}

export function removeCookieToken(){
    return Cookies.remove(TokenKey)
}
